project(destick) # the name of your project
set(PROJECT_VERSION "0.3")

cmake_minimum_required(VERSION 2.4)

set(AKODE_DIR ${CMAKE_CURRENT_SOURCE_DIR}) # for cmake to find AKODEConfig.cmake

find_package(Qt3 REQUIRED) # find and setup Qt3 for this project
find_package(KDE3 REQUIRED) # find and setup KDE3 for this project
find_package(SDL_mixer REQUIRED)

if(SDLMIXER_FOUND)
	message(STATUS "Found SDL_mixer: ${SDLMIXER_LIBRARY}")
else(SDLMIXER_FOUND)
	message(STATUS "Couldn't find SDL_mixer.")
endif(SDLMIXER_FOUND)

add_definitions(${QT_DEFINITIONS} ${KDE3_DEFINITIONS})

# tell cmake where to search for libraries:
link_directories(${KDE3_LIB_DIR} ${SDLMIXER_LIBRARY})

# tell cmake where to search for Qt/KDE headers:
include_directories(${KDE3_INCLUDE_DIR} ${QT_INCLUDE_DIR} ${SDLMIXER_INCLUDE_DIR} build/src src)

# tell cmake to process CMakeLists.txt in that subdirectory
add_subdirectory(src)
add_subdirectory(icon)
add_subdirectory(sounds)